
import service from '@/utils/request-java.js'
// import req from '../req';
// import tool from '@/utils/tool';


// 获取区域列表
export function RegionList(data) {
    
    var a = {
        // id: 1,
        limit:10,
    }
    return service({
        url: 'OaRegionController/list',
        method: 'get',
        params: { ...data, ...a },
    });
}

// 区域删除
export function RegionDelete(data) {
    var a = {
        id: 1,
    }
    return service({
        url: 'OaRegionController/remove',
        method: 'delete',
        params: { ...data, ...a }
    });
}

// 区域增加
export function RegionAdd(data) {
    console.log(555555555,data);
    var a = {
        id: 1,
        status:1
    }
    return service({
        url: '/OaRegionController/add',
        method: 'post',
        params: { ...data, ...a }
    });
}

// 区域修改
export function RegionEdit(data) {
    var a = {
        // id: 1,
        // api_token: req('Region/Edit'),
        // token:tool.data.get("TOKEN")
    }
    return service({
        url: '/OaRegionController/updateVisible',
        method: 'put',
        data: { ...data, ...a }
    });
}